package com.hzlj.position.config;

import com.fz.common.base.core.RequestUtil;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Configuration
public class RequestConfig {
    @Resource
    private ApplicationContext applicationContext;

    @PostConstruct
    private void init() {
        RequestUtil.setApplicationContext(applicationContext);
    }
}
